package com.p2p.backend.service;

import java.util.List;
import java.util.Map;

import com.p2p.backend.command.UserCommand;
import com.p2p.backend.model.BackUser;
import com.p2p.backend.model.Privilege;
import com.p2p.base.page.PageVo;


public interface BackUserService {

	BackUser checkLogin(BackUser user);

	List<Privilege> findPrivilegeByUserId(Long id);

	List<Map<String,Object>> findAllByUserId(Long id);
	
	String passwordModify(UserCommand userCommand, Long id);
	
	boolean add(Map<String,Object> user);
	
	boolean update(Map<String,Object> user);

	PageVo list(PageVo page);

	Map<String, Object> get(Integer uid);

}
